home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fatted Calf
/
The Fatted Calf.iso
/
Applications
/
Communication
/
Weather
/
Source
/
Process.h
< prev
next >
Wrap
Text File
|
1993-11-12
|
750b
|
29 lines
#import <appkit/appkit.h>
#define BUFSIZE 2048
@interface Process:Object {
FILE *fpTo, *fpFrom;
int from;
int childPid;
int masterPty; // file descriptor for master/slave pty
int slavePty;
id delegate;
int bufferCount;
char buffer[BUFSIZE];
SEL action;
}
+ new:(char *)process delegate:del ;
+ new:(char *)process delegate:del andPty:(BOOL)wantsPty andStderr:(BOOL)wantsStderr;
- init:(char *)process delegate:del; // init: andStdErr:YES
- init:(char *)process delegate:del andPty:(BOOL)wantsPty andStderr:(BOOL)wantsStderr;
- puts:(char *)s;
- gets:(char *)s :(int)n;
- terminate:sender; // forces the process to terminate (w/ SIGTERM)
- setDelegate:anObject;
- delegate;
- setAction:(SEL)theAction;
@end